package com.adcc.loadsheet.billing.entity.export;

import com.adcc.loadsheet.billing.vo.chargebill.ChargeBillVO;

import java.util.List;

/**
 * 收费账单导出实体
 * Created by zhaoml on 2020-04-16.
 */
public class Billing {
    private String title;
    private String time;
    private String starttime;           //计费开始时间
    private String endtime;             //计费结束时间
    private String loadsheetnum;        //当月服务舱单航班数
    private String passgerlistnum;      //当月服务旅客名单航班数
    private String repeatnum;           //当月重发航班数
    private String repeatrate;          //重发率
    private int ruleRate;               //计费规则重发率
    private String overnum;             //当月超出20%的航班数
    private String total;               //当月服务航班总数
    private String days;                //本月天数
    private Integer average;             //本月日均服务航班数
    private String price;
    private String cost;                //本月服务费用（元）
    private String unitPrice;           //单价
    private List<TwoItem> month;
    private String type;
    private List<TwoItem> detail;

    public Billing(){}
    public Billing(ChargeBillVO chargeBillVO){
        this.setTitle(chargeBillVO.getContractUserAbbrev());
        this.setStarttime(chargeBillVO.getStarttime());
        this.setEndtime(chargeBillVO.getEndtime());
        this.setLoadsheetnum(chargeBillVO.getLoadsheetnum());
        this.setPassgerlistnum(chargeBillVO.getPassgerlistnum());
        this.setRepeatnum(chargeBillVO.getRepeatnum());
        this.setRepeatrate(chargeBillVO.getRepeatrate());
        this.setRuleRate(chargeBillVO.getRuleRate());
        this.setOvernum(chargeBillVO.getOvernum());
        this.setTotal(chargeBillVO.getTotal());
        this.setDays(chargeBillVO.getDays());
        this.setAverage(chargeBillVO.getAverage());
        this.setCost(chargeBillVO.getCost());
        this.setUnitPrice(chargeBillVO.getUnitPrice());
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getEndtime() {
        return endtime;
    }

    public void setEndtime(String endtime) {
        this.endtime = endtime;
    }

    public String getLoadsheetnum() {
        return loadsheetnum;
    }

    public void setLoadsheetnum(String loadsheetnum) {
        this.loadsheetnum = loadsheetnum;
    }

    public String getPassgerlistnum() {
        return passgerlistnum;
    }

    public void setPassgerlistnum(String passgerlistnum) {
        this.passgerlistnum = passgerlistnum;
    }

    public String getRepeatnum() {
        return repeatnum;
    }

    public void setRepeatnum(String repeatnum) {
        this.repeatnum = repeatnum;
    }

    public String getRepeatrate() {
        return repeatrate;
    }

    public void setRepeatrate(String repeatrate) {
        this.repeatrate = repeatrate;
    }

    public String getOvernum() {
        return overnum;
    }

    public void setOvernum(String overnum) {
        this.overnum = overnum;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getDays() {
        return days;
    }

    public void setDays(String days) {
        this.days = days;
    }

    public Integer getAverage() {
        return average;
    }

    public void setAverage(Integer average) {
        this.average = average;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public List<TwoItem> getMonth() {
        return month;
    }

    public void setMonth(List<TwoItem> month) {
        this.month = month;
    }

    public List<TwoItem> getDetail() {
        return detail;
    }

    public void setDetail(List<TwoItem> detail) {
        this.detail = detail;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(String unitPrice) {
        this.unitPrice = unitPrice;
    }

    public int getRuleRate() {
        return ruleRate;
    }

    public void setRuleRate(int ruleRate) {
        this.ruleRate = ruleRate;
    }
}